<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>新增</title></head>
<body>
<c:if test="${!empty msg}">
    <script type="text/javascript">
        alert("${msg}");
    </script>
</c:if>
<form action="/action/student/btnUpdate" method="post">
    <center>
        <table>
            <tr>
                <td>姓名</td>
                <td><s:textfield   name="dt.name"/>
                </td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    <s:select list="#{0:'男',1:'女'}" name="dt.sex"/>
                    <%--<select name="dt.sex">--%>
                        <%--<c:choose>--%>
                            <%--<c:when test="${dt.sex==0}">--%>
                                <%--<option value="0" selected="true">男</option>--%>
                                <%--<option value="1">女</option>--%>
                            <%--</c:when>--%>
                            <%--<c:otherwise>--%>
                                <%--<option value="0">男</option>--%>
                                <%--<option value="1" selected="true">女</option>--%>
                            <%--</c:otherwise>--%>
                        <%--</c:choose>--%>

                    <%--</select>--%>
                </td>
            </tr>
            <tr>
                <td>年龄</td>
                <td><s:textfield  name="dt.age"/></td>
            </tr>
            <tr>
                <td>简介</td>
                <td><s:textarea name="dt.summary"></s:textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="更新">&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" onclick="window.location.href='/index.jsp'" value="首页">
                </td>

            </tr>
        </table>
    </center>
</form>
</body>
</html>